<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <script>
    class Vnode {
      constructor(tag, data, children, text, elm) {
        // 标签名
        this.tag = tag
        // 数据信息,如attrs,props
        this.data = data
        // 子节点,是一个数组
        this.children = children
        // 当前节点的文本
        this.text = text
        // 对应的真实dom节点
        this.elm = elm

      }
    }
  </script>
</body>

</html>